package com.project.bean;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

/**
 * 商品实体类
 */
@TableName("t_product")
public class ProductBean {
    /**商品编号*/
    @TableId("pk_productId")
    private Integer productId;

    /**商品名称*/
    @TableField("p_name")
    private String name;
    /**品牌*/
    @TableField("p_brand")
    private String brand;
    /**类别*/
    @TableField("p_classes")
    private String classes;
    /*图片路径*/
    @TableField("p_imgPath")
    private String imgPath;
    /**最新采购价*/
    @TableField("p_getPrice")
    private Integer getPrice;
    /**库存数量*/
    @TableField("p_stock")
    private Integer stock;
    /**建议销售价*/
    @TableField("p_sellPrice")
    private Integer sellPrice;

    public ProductBean() {
    }

    public ProductBean(Integer productId, String name, String brand, String classes, String imgPath) {
        this.productId = productId;
        this.name = name;
        this.brand = brand;
        this.classes = classes;
        this.imgPath = imgPath;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getBrand() {
        return brand;
    }

    public void setBrand(String brand) {
        this.brand = brand;
    }

    public String getClasses() {
        return classes;
    }

    public void setClasses(String classes) {
        this.classes = classes;
    }

    public String getImgPath() {
        return imgPath;
    }

    public void setImgPath(String imgPath) {
        this.imgPath = imgPath;
    }

    public Integer getGetPrice() {
        return getPrice;
    }

    public void setGetPrice(Integer getPrice) {
        this.getPrice = getPrice;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Integer getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Integer sellPrice) {
        this.sellPrice = sellPrice;
    }

    @Override
    public String toString() {
        return "ProductBean{" +
                "productId=" + productId +
                ", name='" + name + '\'' +
                ", brand='" + brand + '\'' +
                ", classes='" + classes + '\'' +
                ", imgPath='" + imgPath + '\'' +
                ", getPrice=" + getPrice +
                ", stock=" + stock +
                ", sellPrice=" + sellPrice +
                "}\n";
    }
}
